package cn.lngaosu.lwyd.module.integration.dal.mysql.weixinuseranalysis;

import java.util.*;

import cn.lngaosu.lwyd.framework.common.pojo.PageResult;
import cn.lngaosu.lwyd.framework.common.pojo.PageParam;
import cn.lngaosu.lwyd.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.lngaosu.lwyd.framework.mybatis.core.mapper.BaseMapperX;
import cn.lngaosu.lwyd.module.integration.dal.dataobject.weixinuseranalysis.WeixinUserSummaryDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 微信用户增减数据 Mapper
 *
 * @author 张恒
 */
@Mapper
public interface WeixinUserSummaryMapper extends BaseMapperX<WeixinUserSummaryDO> {

    default List<WeixinUserSummaryDO> selectListByAnalysisId(Long analysisId) {
        return selectList(WeixinUserSummaryDO::getAnalysisId, analysisId);
    }

    default int deleteByAnalysisId(Long analysisId) {
        return delete(WeixinUserSummaryDO::getAnalysisId, analysisId);
    }

	default int deleteByAnalysisIds(List<Long> analysisIds) {
	    return deleteBatch(WeixinUserSummaryDO::getAnalysisId, analysisIds);
	}

}